import request from '@/common/request'

export function allRegion(data) {
    return request({
        url: '/apiadmin/region/all',
        method: 'get',
        params: data
    })
}

export function listRegion(data) {
    return request({
        url: '/apiadmin/region/index',
        method: 'get',
        params: data
    })
}



export function areaList(data) {
    return request({
        url: '/apiadmin/region/areaList',
        params: data,
    })
}

export function regionProvince(data) {
    return request({
        url: '/apiadmin/region/regionProvince',
        params: data,
    })
}

export function regionCity(data) {
    return request({
        url: '/apiadmin/region/regionCity',
        params: data,
    })
}

export function regionCounty(data) {
    return request({
        url: '/apiadmin/region/regionCounty',
        params: data,
    })
}

export function regionChildren(data) {
    return request({
        url: '/apiadmin/region/children',
        params: data,
    })
}

export function regionChildrenAll(data) {
    return request({
        url: '/apiadmin/region/childrenAll',
        params: data,
    })
}

export function editregionSelect(data) {
    return request({
        url: '/apiadmin/region/editregionSelect',
        method: 'post',
        data: data
    })
}
